<div class="teamwills view">
<h2><?php  __('Teamwill');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $teamwill['Teamwill']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Team'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($teamwill['Team']['what'], array('controller' => 'teams', 'action' => 'view', $teamwill['Team']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('I Will'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $teamwill['Teamwill']['i_will']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('How'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $teamwill['Teamwill']['how']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('When Date'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $teamwill['Teamwill']['when_date']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Teamwill', true), array('action' => 'edit', $teamwill['Teamwill']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Teamwill', true), array('action' => 'delete', $teamwill['Teamwill']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $teamwill['Teamwill']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Teamwills', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Teamwill', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Teams', true), array('controller' => 'teams', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Team', true), array('controller' => 'teams', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Team Members', true), array('controller' => 'team_members', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Team Member', true), array('controller' => 'team_members', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Teamwill Schedules', true), array('controller' => 'teamwill_schedules', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Teamwill Schedule', true), array('controller' => 'teamwill_schedules', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Team Members');?></h3>
	<?php if (!empty($teamwill['TeamMember'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Teamwill Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($teamwill['TeamMember'] as $teamMember):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $teamMember['id'];?></td>
			<td><?php echo $teamMember['teamwill_id'];?></td>
			<td><?php echo $teamMember['user_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'team_members', 'action' => 'view', $teamMember['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'team_members', 'action' => 'edit', $teamMember['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'team_members', 'action' => 'delete', $teamMember['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $teamMember['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Team Member', true), array('controller' => 'team_members', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Teamwill Schedules');?></h3>
	<?php if (!empty($teamwill['TeamwillSchedule'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Teamwill Id'); ?></th>
		<th><?php __('Schedule Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($teamwill['TeamwillSchedule'] as $teamwillSchedule):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $teamwillSchedule['id'];?></td>
			<td><?php echo $teamwillSchedule['teamwill_id'];?></td>
			<td><?php echo $teamwillSchedule['schedule_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'teamwill_schedules', 'action' => 'view', $teamwillSchedule['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'teamwill_schedules', 'action' => 'edit', $teamwillSchedule['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'teamwill_schedules', 'action' => 'delete', $teamwillSchedule['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $teamwillSchedule['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Teamwill Schedule', true), array('controller' => 'teamwill_schedules', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
